home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 2.4 KB | 111 lines | [TEXT/MPS ] |
- //
- // File: SLSUSink.h
- // Release Version: $ ODF 1 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
-
- #ifndef SLSUSINK_IDL
- #define SLSUSINK_IDL
-
- // ----- Our Includes -----
-
- #ifndef FWENVDEF_IDL
- #include "FWEnvDef.idl"
- #endif
-
- #ifndef SLRANSIN_IDL
- #include "SLRanSin.idl"
- #endif
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- // ----- OpenDoc Includes -----
-
- #include <StorageU.idl>
- #include <SUView.idl>
-
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface FW_OStorageUnitSink;
-
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface FW_ORandomAccessSink;
- interface ODStorageUnitView;
- interface ODStorageUnit;
-
-
- //==============================================================================
- // Types used by this interface
- //==============================================================================
-
- typedef somToken FW_CPrivSUSinkRep;
-
-
- //========================================================================================
- // FW_OStorageUnitSink
- //========================================================================================
-
- interface FW_OStorageUnitSink : FW_ORandomAccessSink
- {
- void InitFromStorageUnitView(in ODStorageUnitView storageUnitView);
- // Create a sink attached to the storage unit view.
- // The sink does not assume ownership of the view.
-
- void InitFromStorageUnitAndProperty(in ODStorageUnit storageUnit,
- in ODPropertyName propertyName,
- in ODValueType valueType);
- // Create a sink attached to the give (storageUnit, propertyName, valueType).
-
- ODStorageUnitView GetStorageUnitView();
-
- #ifdef __SOMIDL__
- implementation
- {
- functionprefix = "FW_OStorageUnitSink__";
-
- override:
- somInit,
- somUninit,
-
- Read,
-
- GetWritableBytes,
- Write,
-
- GetLength,
- SetLength,
- GetPosition,
- SetPosition;
-
- releaseorder:
- InitFromStorageUnitView,
- InitFromStorageUnitAndProperty,
- GetStorageUnitView;
-
- majorversion = 1;
- minorversion = 0;
-
- passthru C_xh =
- "";
-
- passthru C_xih =
- "";
-
- #ifdef __PRIVATE__
- FW_CPrivSUSinkRep* fRep;
- #endif
- };
- #endif
- };
-
- #endif
-